/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javari.game;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

/**
 *
 * @author Verner
 */
public class InicioActivity extends Activity implements Runnable {
private final int delay = 5000;
    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.tela_inicio);
        
        Handler hand = new Handler();
        hand.postDelayed(this,delay);
        // ToDo add your GUI initialization code here    
    }

    public void run() {
        try{
            Intent intent = new Intent(InicioActivity.this, MainActivity.class);//getApplicationContext()
            startActivity(intent);
            finish();
        }catch(Exception e){
            throw new UnsupportedOperationException("Not supported yet.");
        }
    }
}
